package com.duqc.common.spi;

import java.util.ServiceLoader;

/**
 * @ClassName MainTest
 * @Description MainTest
 * @Author duqc
 * @Date 2023/3/20
 **/
public class MainTest {

    public static void main(String[] args) {
        ServiceLoader<Registry> load = ServiceLoader.load(Registry.class);
        for (Registry next : load) {
            next.registry("127.0.0.1", 8082);
        }
    }

}
